/*
 * @Description: 权限处理
 * @Author: Boide
 * @Date: 2021-09-07 10:24:57
 * @LastEditors: guiyi@hongyi.tech
 * @LastEditTime: 2021-09-07 10:37:40
 */
import hasPermi from './hasPermi'

const install = function(Vue) {
  Vue.directive('hasPermi', hasPermi)
}

if (window.Vue) {
  window['hasPermi'] = hasPermi
  Vue.use(install); // eslint-disable-line
}

export default install
